gtk4.git
8 years agowidget: Remove some always-true precondition checks
Timm Bäder [Tue, 15 Aug 2017 19:36:57 +0000 (21:36 +0200)]
widget: Remove some always-true precondition checks

8 years agoGdkDisplay: Call the correct push|pop_error_trap()
Daniel Boles [Tue, 15 Aug 2017 18:29:22 +0000 (19:29 +0100)]
GdkDisplay: Call the correct push|pop_error_trap()

It is wrong to assume all Displays are of the same class as the default.

https://bugzilla.gnome.org/show_bug.cgi?id=784016

8 years agoScrolledWindow: Bin unreachable ternary branches
Daniel Boles [Tue, 15 Aug 2017 14:15:08 +0000 (15:15 +0100)]
ScrolledWindow: Bin unreachable ternary branches

We already checked that the child is not NULL above.

Coverity CID 1454191

8 years agogtkpango: Remove unused functions
Timm Bäder [Tue, 15 Aug 2017 19:20:19 +0000 (21:20 +0200)]
gtkpango: Remove unused functions

Remove _gtk_pango_move_lines and a few function declarations in the
private header file since they are only used inside gtkpango.c

8 years agobuild: Install gtkcenterbox.h
Timm Bäder [Tue, 15 Aug 2017 19:19:48 +0000 (21:19 +0200)]
build: Install gtkcenterbox.h

8 years agoWidget: Fix outdated comments about tooltips
Daniel Boles [Tue, 15 Aug 2017 01:11:19 +0000 (02:11 +0100)]
Widget: Fix outdated comments about tooltips

They are not usually yellow anymore, the previous advice about how to
style them was for pre-3.20 versions, and the immediate replacement (CSS
class .tooltip) does not seem ready for primetime.

https://bugzilla.gnome.org/show_bug.cgi?id=784421

8 years agobuild: Ensure introspection data points to the right header
Emmanuele Bassi [Tue, 15 Aug 2017 16:13:30 +0000 (17:13 +0100)]
build: Ensure introspection data points to the right header

We have different header files for different sections of our API,
including introspection.

8 years agobuild: Move Vulkan shader handling to its own directory
Emmanuele Bassi [Tue, 15 Aug 2017 15:17:05 +0000 (16:17 +0100)]
build: Move Vulkan shader handling to its own directory

Spooky action at a distance is not really allowed in Meson, so the rules
to generate the SPV files should go in their own directory.

Tested by: Rico Tzschichholz <ricotz@ubuntu.com>

8 years agobuild: Partially revert "Drop old MSC makefiles"
Chun-wei Fan [Tue, 15 Aug 2017 02:39:51 +0000 (10:39 +0800)]
build: Partially revert "Drop old MSC makefiles"

gtk/libgtk4.manifest.in is used to give the themed print dialog on
Windows, which should not be removed, so we ought to get it back.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agogtk/gtkemojichooser.c: Don't use g_autoptr()
Chun-wei Fan [Tue, 15 Aug 2017 02:43:01 +0000 (10:43 +0800)]
gtk/gtkemojichooser.c: Don't use g_autoptr()

We can't use g_autoptr() on non-GCC-style compilers.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agomake-pot: Make it executable
Piotr Drąg [Tue, 15 Aug 2017 14:30:14 +0000 (16:30 +0200)]
make-pot: Make it executable

Oops.

8 years agoRestore make-pot script
Piotr Drąg [Tue, 15 Aug 2017 14:16:32 +0000 (16:16 +0200)]
Restore make-pot script

Until #783099 is fixed.

8 years agodocs: Update references to Meson CLI utilities
Emmanuele Bassi [Tue, 15 Aug 2017 13:08:57 +0000 (14:08 +0100)]
docs: Update references to Meson CLI utilities

The separate `mesonconf` and `mesontest` binaries have been deprecated,
in favour of `meson` sub-commands.

8 years agobroadway: Build fixes
Emmanuele Bassi [Tue, 15 Aug 2017 12:57:53 +0000 (13:57 +0100)]
broadway: Build fixes

The Broadway backend does not build after commit c409fca7 dropped some
occurrences of the root window from GDK.

8 years agogdk: Remove another gdk_window_new_input reference
Timm Bäder [Tue, 15 Aug 2017 13:00:49 +0000 (15:00 +0200)]
gdk: Remove another gdk_window_new_input reference

The most obvious one.

8 years agobuild: Remove more wrong kwargs
Timm Bäder [Tue, 15 Aug 2017 12:55:17 +0000 (14:55 +0200)]
build: Remove more wrong kwargs

declare_dependency does not take a depends: kwarg and meson 0.42.0
started warning about that.

8 years agobuild: Remove wrong kwargs from a11y test()s
Timm Bäder [Tue, 15 Aug 2017 12:48:43 +0000 (14:48 +0200)]
build: Remove wrong kwargs from a11y test()s

test() does not take install: or install_dir: kwargs.

8 years agoRemove an erroneous unref
Matthias Clasen [Tue, 15 Aug 2017 10:40:05 +0000 (06:40 -0400)]
Remove an erroneous unref

This was leftover by accident.

8 years agoUpdated Serbian translation
Мирослав Николић [Tue, 15 Aug 2017 04:26:02 +0000 (06:26 +0200)]
Updated Serbian translation

8 years agoUpdated Serbian translation
Мирослав Николић [Tue, 15 Aug 2017 04:25:13 +0000 (06:25 +0200)]
Updated Serbian translation

8 years agotestpopover: Sync initial vals of controls & props
Daniel Boles [Mon, 14 Aug 2017 22:10:59 +0000 (23:10 +0100)]
testpopover: Sync initial vals of controls & props

The ComboBoxes were initially empty, rather than reflecting the initial
values of the properties. The CheckButtons were only correct by chance.
Fix this by setting the initial values on the widgets and binding them
to the properties using SYNC_CREATE, so the two are always synced up.

https://bugzilla.gnome.org/show_bug.cgi?id=786209

8 years agobuild: Fix post-install script
Emmanuele Bassi [Mon, 14 Aug 2017 21:29:44 +0000 (22:29 +0100)]
build: Fix post-install script

Use the appropriate variable when expanding the input method modules
path.

8 years agomeson: install gdkvulkancontext.h
Marc-Antoine Perennou [Wed, 24 May 2017 08:18:37 +0000 (10:18 +0200)]
meson: install gdkvulkancontext.h

https://bugzilla.gnome.org/show_bug.cgi?id=782981

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agomeson: install gdkdrawcontext.h
Marc-Antoine Perennou [Wed, 24 May 2017 08:09:35 +0000 (10:09 +0200)]
meson: install gdkdrawcontext.h

https://bugzilla.gnome.org/show_bug.cgi?id=782981

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agogdk: fix headers installation path
Marc-Antoine Perennou [Tue, 23 May 2017 08:32:27 +0000 (10:32 +0200)]
gdk: fix headers installation path

https://bugzilla.gnome.org/show_bug.cgi?id=782981

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agoRemove MAINTAINER file
Emmanuele Bassi [Mon, 14 Aug 2017 16:45:41 +0000 (17:45 +0100)]
Remove MAINTAINER file

The DOAP file is a better description of the maintainership of the
project.

8 years agoRemove obsolete README for Windows
Emmanuele Bassi [Mon, 14 Aug 2017 16:45:02 +0000 (17:45 +0100)]
Remove obsolete README for Windows

Using Meson we get Windows support, both via Ninja and Visual Studio.

8 years agoRename 'HACKING' to 'CONTRIBUTING'
Emmanuele Bassi [Mon, 14 Aug 2017 16:43:40 +0000 (17:43 +0100)]
Rename 'HACKING' to 'CONTRIBUTING'

And remove redundant and obsolete information.

8 years agodocs: Update the 'building gtk' guide
Emmanuele Bassi [Mon, 14 Aug 2017 11:32:33 +0000 (12:32 +0100)]
docs: Update the 'building gtk' guide

Clean up for Meson.

8 years agodocs: Update the release instructions
Emmanuele Bassi [Sun, 13 Aug 2017 16:23:21 +0000 (17:23 +0100)]
docs: Update the release instructions

8 years agodocs: Update the README
Emmanuele Bassi [Sun, 13 Aug 2017 12:29:42 +0000 (13:29 +0100)]
docs: Update the README

Let's bring it into this century, and drop outdated information.

8 years agoDrop old MSC makefiles
Emmanuele Bassi [Sun, 13 Aug 2017 11:59:23 +0000 (12:59 +0100)]
Drop old MSC makefiles

8 years agoDrop Autotools build
Emmanuele Bassi [Sun, 13 Aug 2017 11:57:45 +0000 (12:57 +0100)]
Drop Autotools build

We are officially switching to Meson as the default build system for
GTK+.

8 years agoUpdate Indonesian translation
Kukuh Syafaat [Mon, 14 Aug 2017 20:18:42 +0000 (20:18 +0000)]
Update Indonesian translation

8 years agoUpdate Indonesian translation
Kukuh Syafaat [Mon, 14 Aug 2017 20:17:43 +0000 (20:17 +0000)]
Update Indonesian translation

8 years agoRedo emoji data slightly
Matthias Clasen [Sun, 13 Aug 2017 19:16:11 +0000 (15:16 -0400)]
Redo emoji data slightly

No longer store variation sequences explicitly. Instead, put a 0
in the sequence where the modifiers will be inserted. This is more
compact, and it allows us to put variations directly into the
recent section.

Update the type of the recent-emoji setting to match these changes.

8 years agopopover: Remove double assignment
Timm Bäder [Mon, 14 Aug 2017 17:27:50 +0000 (19:27 +0200)]
popover: Remove double assignment

8 years agoUpdate Spanish translation
Daniel Mustieles [Mon, 14 Aug 2017 16:06:32 +0000 (16:06 +0000)]
Update Spanish translation

8 years agogtkwindowprivate: Remove _gtk_window_keys_foreach
Timm Bäder [Mon, 14 Aug 2017 12:24:29 +0000 (14:24 +0200)]
gtkwindowprivate: Remove _gtk_window_keys_foreach

Unused outside of gtkwindow.c

8 years agowinodw: Remove _gtk_window_reposition prototype
Timm Bäder [Mon, 14 Aug 2017 12:24:10 +0000 (14:24 +0200)]
winodw: Remove _gtk_window_reposition prototype

It's never implemented.

8 years agomeson: Don't define G_ENABLE_CONSISTENCY_CHECKS unconditionally
Timm Bäder [Mon, 14 Aug 2017 11:01:22 +0000 (13:01 +0200)]
meson: Don't define G_ENABLE_CONSISTENCY_CHECKS unconditionally

We add it back later depending on the current buildtype.

8 years agowidget: Remove gtk_widget_get_border_allocation
Timm Bäder [Mon, 14 Aug 2017 10:20:42 +0000 (12:20 +0200)]
widget: Remove gtk_widget_get_border_allocation

8 years agowidget: Remove gtk_widget_get_content_allocation
Timm Bäder [Mon, 14 Aug 2017 10:12:09 +0000 (12:12 +0200)]
widget: Remove gtk_widget_get_content_allocation

Replace it where we still need something similar, e.g. in
gtk_widget_translate_coordinates

8 years agowidget: Remove gtk_widget_get_margin_allocation
Timm Bäder [Mon, 14 Aug 2017 08:18:14 +0000 (10:18 +0200)]
widget: Remove gtk_widget_get_margin_allocation

It's not needed anymore with get_outer_allocation (which will be
replaced by something more appropriately named).

8 years agoUpdate Catalan translation
Jordi Mas [Sun, 13 Aug 2017 22:36:36 +0000 (00:36 +0200)]
Update Catalan translation

8 years agoUpdate Galician translation
Fran Dieguez [Sun, 13 Aug 2017 22:19:01 +0000 (22:19 +0000)]
Update Galician translation

8 years agoconvert-emoji: Don’t pointlessly do rest of loop
Daniel Boles [Sun, 13 Aug 2017 16:39:13 +0000 (17:39 +0100)]
convert-emoji: Don’t pointlessly do rest of loop

skip can never become FALSE again, so break as soon as it becomes TRUE.

8 years agoUpdate Turkish translation
Muhammet Kara [Sun, 13 Aug 2017 16:34:57 +0000 (16:34 +0000)]
Update Turkish translation

(cherry picked from commit a6de59845ac247c309f19ebff5547229d0cd5ed2)

8 years agomeson: Add emoji data
Timm Bäder [Sun, 13 Aug 2017 16:08:41 +0000 (18:08 +0200)]
meson: Add emoji data

Otherwise we crash at runtime.

8 years agogsk: Add color shader sources to meson build files
Timm Bäder [Sun, 13 Aug 2017 16:01:34 +0000 (18:01 +0200)]
gsk: Add color shader sources to meson build files

8 years agoDon't update headings in an idle
Matthias Clasen [Sun, 13 Aug 2017 13:27:37 +0000 (09:27 -0400)]
Don't update headings in an idle

It is not necessary since flow box invalidation is
all synchronous currently. If that ever changes,
this code will need adjustment.

8 years agoscrolled window: Don't leak timeout sources
Matthias Clasen [Sun, 13 Aug 2017 13:24:50 +0000 (09:24 -0400)]
scrolled window: Don't leak timeout sources

We must only create a new source if there isn't one already,
otherwise we override the ID and leak the previous one.

8 years agoAdd names to more sources
Matthias Clasen [Sun, 13 Aug 2017 13:03:40 +0000 (09:03 -0400)]
Add names to more sources

This makes debugging mainloop-related issues more pleasant.

8 years agoemoji: Fix a leak
Matthias Clasen [Sun, 13 Aug 2017 11:49:57 +0000 (07:49 -0400)]
emoji: Fix a leak

We were leaking the list of recently used Emoji here.
Pointed out by Timm Bädert.

8 years agoemoji: Start search on the first character
Matthias Clasen [Sun, 13 Aug 2017 11:49:13 +0000 (07:49 -0400)]
emoji: Start search on the first character

There is no need to wait for a longer prefix here.
We already display all the content anyway, it will
only get less.

8 years agoUpdate Nepali translation
Pawan Chitrakar [Sun, 13 Aug 2017 08:30:09 +0000 (08:30 +0000)]
Update Nepali translation

8 years agoUpdate Nepali translation
Pawan Chitrakar [Sun, 13 Aug 2017 08:08:44 +0000 (08:08 +0000)]
Update Nepali translation

8 years agoUpdate Polish translation
Piotr Drąg [Sat, 12 Aug 2017 23:24:38 +0000 (01:24 +0200)]
Update Polish translation

8 years agoUpdate POTFILES.skip
Piotr Drąg [Sat, 12 Aug 2017 23:18:31 +0000 (01:18 +0200)]
Update POTFILES.skip

8 years agoFix the meson build
Matthias Clasen [Sat, 12 Aug 2017 23:06:00 +0000 (19:06 -0400)]
Fix the meson build

8 years agowidget-factory: Add a use of show-emoji-icon
Matthias Clasen [Fri, 11 Aug 2017 16:25:35 +0000 (12:25 -0400)]
widget-factory: Add a use of show-emoji-icon

This also serves as a testcase for nested popovers
that was missing in widget-factory so far.

8 years agoAdd a testcase for the new Emoji chooser
Matthias Clasen [Fri, 11 Aug 2017 16:09:55 +0000 (12:09 -0400)]
Add a testcase for the new Emoji chooser

For now, add it in testentryicons.

8 years agoentry: Add support for an Emoji chooser
Matthias Clasen [Fri, 11 Aug 2017 16:05:24 +0000 (12:05 -0400)]
entry: Add support for an Emoji chooser

Add an "Insert Emoji" item to the context menu in entries.
We also add a show-emoji-icon property, which when set to
TRUE, will add an icon that can be clicked to bring up
the Emoji chooser.

8 years agoFix a problem with focus handling in modal popovers
Matthias Clasen [Fri, 11 Aug 2017 16:03:54 +0000 (12:03 -0400)]
Fix a problem with focus handling in modal popovers

When the popover is dismissed, we return the focus to
where it came from. However, by using gtk_widget_grab_focus,
we were messing up the selection if that widget happens to
be an entry. Special-case GtkEntry and use
gtk_entry_grab_focus_without_selecting to avoid this issue.

8 years agoAdd an Emoji chooser widget
Matthias Clasen [Fri, 11 Aug 2017 15:54:15 +0000 (11:54 -0400)]
Add an Emoji chooser widget

Add a popover that shows color Emoji, with a search entry.
The recently-used Emoji are stored in a GSetting.

8 years agoAdd Emoji data
Matthias Clasen [Fri, 11 Aug 2017 15:47:02 +0000 (11:47 -0400)]
Add Emoji data

The json file is imported from the (MIT-licensed) emoji.json[0] node
module, which generates it from the emoji list published by the
Unicode Consortium.

This commit also adds a little tool to convert the data into
a compact GVariant, and the result of that conversion, which is
added to libgtk as a resource. The following commits will make use
of it.

[0] https://github.com/amio/emoji.json

8 years agoInfoBar: Fix wrong/uninit var use in code example
Daniel Boles [Sat, 12 Aug 2017 20:07:22 +0000 (21:07 +0100)]
InfoBar: Fix wrong/uninit var use in code example

https://bugzilla.gnome.org/show_bug.cgi?id=786144

8 years agoAdwaita: Sync CSS files with current SASS
Daniel Boles [Sat, 12 Aug 2017 15:01:33 +0000 (16:01 +0100)]
Adwaita: Sync CSS files with current SASS

8 years agoLevelBar: Don’t pointlessly copy an allocation
Daniel Boles [Tue, 8 Aug 2017 18:49:20 +0000 (19:49 +0100)]
LevelBar: Don’t pointlessly copy an allocation

now featuring the required comma :/

8 years agowidget: Remove private _gtk_widget_set_has_focus
Timm Bäder [Sat, 12 Aug 2017 06:48:50 +0000 (08:48 +0200)]
widget: Remove private _gtk_widget_set_has_focus

The css state here is now handled in gtk_widget_set_focus_child

8 years agoRevert "LevelBar: Avoid unnecessarily copying allocation"
Matthias Clasen [Sat, 12 Aug 2017 13:46:06 +0000 (09:46 -0400)]
Revert "LevelBar: Avoid unnecessarily copying allocation"

This reverts commit d5e25be9bcd6c1a9db74ee749fa8808ba55a5ca5.

It doesn't build.

8 years agoFix a bootstrapping problem without root windows
Matthias Clasen [Sat, 12 Aug 2017 13:36:49 +0000 (09:36 -0400)]
Fix a bootstrapping problem without root windows

We create various windows during the initial creation of display
objects, which causes some bootstrapping issues when we try to
find the default screen to get its root window. To work around this,
pass the display object into gdk_window_new.

This is not an API change, since gdk_window_new is no longer public API.

8 years agoLevelBar: Avoid unnecessarily copying allocation
Daniel Boles [Sat, 12 Aug 2017 13:09:09 +0000 (14:09 +0100)]
LevelBar: Avoid unnecessarily copying allocation

Just use the original allocation, instead of copying it and passing that

8 years agoRemove an unused field
Matthias Clasen [Fri, 11 Aug 2017 23:52:29 +0000 (19:52 -0400)]
Remove an unused field

Nothing uses bubble_window, so it can go.

8 years agoDrop the shape window example in testgtk
Matthias Clasen [Wed, 9 Aug 2017 01:05:19 +0000 (21:05 -0400)]
Drop the shape window example in testgtk

Not sure this can be rescued without root window coordinates.
It is also somewhat inherently X11-specific.

8 years agoRemove root window getters from public API
Matthias Clasen [Wed, 9 Aug 2017 00:27:46 +0000 (20:27 -0400)]
Remove root window getters from public API

These are now just used internally in GDK.

8 years agoMake the xim module build without root getters
Matthias Clasen [Wed, 9 Aug 2017 00:31:00 +0000 (20:31 -0400)]
Make the xim module build without root getters

This is X specific code anyway, so no need to use
generic GDK api for this.

8 years agoStop passing root window to gdk_device_query_state
Matthias Clasen [Tue, 8 Aug 2017 23:49:29 +0000 (19:49 -0400)]
Stop passing root window to gdk_device_query_state

The backends do the right thing now.

8 years agoAllow passing a NULL window to gdk_device_query_state
Matthias Clasen [Tue, 8 Aug 2017 23:45:09 +0000 (19:45 -0400)]
Allow passing a NULL window to gdk_device_query_state

Interpret NULL as "root window" here - we only have one
screen nowadays, so there is no choice involved, and this
will let us avoid dealing with the root window in the
fontend code.

8 years agoDrop root windows from some internal apis
Matthias Clasen [Tue, 8 Aug 2017 19:43:03 +0000 (15:43 -0400)]
Drop root windows from some internal apis

_gdk_device_query_state was needlessly shuffling
root windows around.

8 years agoDrop keynav for dnd
Matthias Clasen [Tue, 8 Aug 2017 19:28:45 +0000 (15:28 -0400)]
Drop keynav for dnd

This is very much an easter egg, and it is the last place where
we use the root window in libgtk.

8 years agoadwaita: remove min-<lenght> from levelbar blocks
Lapo Calamandrei [Fri, 11 Aug 2017 14:25:40 +0000 (16:25 +0200)]
adwaita: remove min-<lenght> from levelbar blocks

It's not needed and causes issues, see for details:
https://bugzilla.gnome.org/show_bug.cgi?id=783649

8 years agoadwaita: Remove menu margins
Lapo Calamandrei [Fri, 11 Aug 2017 13:07:13 +0000 (15:07 +0200)]
adwaita: Remove menu margins

menu margins have been added has a hack to mitigate bug:
https://bugzilla.gnome.org/show_bug.cgi?id=591258 with gtk+4 this
doesn't work anymore on gtk+4, the margin should probably be moved
to the parent window node, but it's not selectable, commenting out
for now.

8 years agoUpdate Polish translation
Piotr Drąg [Thu, 10 Aug 2017 22:05:26 +0000 (00:05 +0200)]
Update Polish translation

8 years agowidget: Remove gtk_widget_set_redraw_on_alloc
Timm Bäder [Wed, 9 Aug 2017 14:26:26 +0000 (16:26 +0200)]
widget: Remove gtk_widget_set_redraw_on_alloc

Since gtk+ draws more than the widget and allocates more size to it than
it knows about, this flag doesn't work anymore. Removing it (or setting
it to TRUE for widgets that used to set it to FALSE) fixes drawing
invalidation when these widgets get allocated a new size.

8 years agoGdkWindow: Remove gdk_window_new_input
Timm Bäder [Wed, 9 Aug 2017 13:19:46 +0000 (15:19 +0200)]
GdkWindow: Remove gdk_window_new_input

Not needed anymore.

8 years agoDuplicate the TIC strings before NULLing the GObject data.
John Ralls [Tue, 8 Aug 2017 20:15:46 +0000 (23:15 +0300)]
Duplicate the TIC strings before NULLing the GObject data.

NULLing the data strings in GObject frees and invalidates the pointers
returned by g_object_get_data so we need our own copy of the values.

8 years agoRevert "levelbar: Don't underallocate block widgets"
Daniel Boles [Tue, 8 Aug 2017 17:58:13 +0000 (18:58 +0100)]
Revert "levelbar: Don't underallocate block widgets"

This reverts commit e25e1c54a44264de628fb3919fb47afd44e21ba5.

That commit causes a block always to be shown at the min side, even when
the value is 0, in which case, no fill should be shown.

https://bugzilla.gnome.org/show_bug.cgi?id=783649

8 years ago3.91.2
Matthias Clasen [Tue, 8 Aug 2017 01:57:58 +0000 (21:57 -0400)]
3.91.2

8 years agoFix docs build
Matthias Clasen [Tue, 8 Aug 2017 02:18:24 +0000 (22:18 -0400)]
Fix docs build

8 years agoContainer: Don’t scroll to unset focus child coord
Daniel Boles [Mon, 7 Aug 2017 17:32:57 +0000 (18:32 +0100)]
Container: Don’t scroll to unset focus child coord

In gtk_container_real_set_focus_child(), we try to scroll to the
position of the new :focus-child if we have h or v adjustments.

gtk_widget_translate_coordinates() returns FALSE if neither widget is
realized or in other situations that cause output parameters x and y not
to be set. Thus, if the caller did not initialise x/y and uses them even
if the function returned FALSE, they are using uninitialised variables.

In gtk_container_real_set_focus_child(), we did not check the return
value but merrily went ahead and used x and y regardless. This is UB, as
revealed by Valgrind, as well as being pointless.

The trivial fix is to exit early if (!gtk_widget_translate_coordinates).

https://bugzilla.gnome.org/show_bug.cgi?id=776909

8 years agoContainer: Fix scrolled coord in set_focus_child()
Daniel Boles [Mon, 7 Aug 2017 17:25:28 +0000 (18:25 +0100)]
Container: Fix scrolled coord in set_focus_child()

Commit 885bcd9fe4b6b4ecb003570ea0520cf42ec737a9 trampled the bit here
that is meant to translate between the nominated focus child and the
actual innermost one that is used for updating the h/v adjustments.

So, we need to save the passed focus child before diving into its
children, then translate and get allocations between them both. This
makes GTK+ 4 behave like GTK+ 3 again: instead of priv->focus_child and
focus_child, we now have focus_child and child, serving the roles of the
nominated focus child and its innermost focus child respectively.

This also ditches the unnecessary call to Widget:get_focus_child(), as
Container::set_focus_child() gets that same new child as an argument.

8 years agoAccelLabel: set_accel_closure() arg is nullable
Daniel Boles [Mon, 7 Aug 2017 09:32:13 +0000 (10:32 +0100)]
AccelLabel: set_accel_closure() arg is nullable

8 years agoAccelLabel: set_accel_widget() arg is nullable
Daniel Boles [Mon, 7 Aug 2017 09:27:52 +0000 (10:27 +0100)]
AccelLabel: set_accel_widget() arg is nullable

8 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 7 Aug 2017 08:07:50 +0000 (10:07 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 7 Aug 2017 07:10:37 +0000 (09:10 +0200)]
Updated Slovenian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Mon, 7 Aug 2017 06:04:19 +0000 (06:04 +0000)]
Update Friulian translation

8 years agowindow: Fix traversal of popovers during picking
Carlos Garnacho [Sun, 6 Aug 2017 20:17:27 +0000 (22:17 +0200)]
window: Fix traversal of popovers during picking

These need to be traversed in the opposite direction. Given the order is
opposite to rendering, use a GQueue so it's cheap to traverse/add either
way.

8 years agoHeaderBar: Use less clashing appmenu fallback icon
Daniel Boles [Sun, 6 Aug 2017 17:03:27 +0000 (18:03 +0100)]
HeaderBar: Use less clashing appmenu fallback icon

process-stop-symbolic is unintuitive if represented as a stop sign as in
Adwaita, and completely ambiguous if represented as a cross like the
window close button in other icon themes.

Instead, use application-x-executable, which is already used elsewhere
as a fallback if no specific icon can be found for the application.

https://bugzilla.gnome.org/show_bug.cgi?id=784624

8 years agodocs: gtk/running: Document the GTK_CSD env var
Daniel Boles [Sun, 6 Aug 2017 16:42:17 +0000 (17:42 +0100)]
docs: gtk/running: Document the GTK_CSD env var

It was not documented before.

https://bugzilla.gnome.org/show_bug.cgi?id=778791#c1